<?php
$my_ip = "92.101.58.103";
$filename = "/home/fox/dev/www/svn/trunk/pr/temp/res-50.txt";
if (($fd = fopen($filename, 'r')) !== FALSE) {
	$str = fread($fd, filesize($filename));
	fclose($fd);
	$str = split("\n", $str);

	if($str[0] == "GOODPROXY") {
		$pr = $str[1];
		$ip = $str[2];
		$pi = substr($str[1], 0, strpos($str[1], ":")); # proxy ip 
		if($pi == $ip) {
			echo "ANONYMOUS\n";
		} elseif($pi == $my_ip) {
			echo "TRANSPARENT\n";
		} else {
			echo "DIFFERENT PROXY IP\n";
		}
	} else {
		echo "BAD ANSWER\n";
	}
}
?>
